<%--
    Created on : 2019
    Author     : 黄忠
--%>

<%@page import="dateManager.LookDateBean"%>
<%@page import="java.util.ArrayList"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ page errorPage="../error.jsp" %>
<!DOCTYPE html>

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>个人信息管理系统->查看日程</title>
        <link rel="stylesheet" href="../CSS/infor.css">
    </head>
    <body bgcolor="CCCFFF">
      <br>
      <br>
          <%
              ArrayList datelist=(ArrayList)session.getAttribute("datelist");
              if(datelist==null||datelist.size()==0){
          %>
          <div align="center">
              <h1>您还没有任何日程！</h1>
          </div>
          <%
          }else{
          %>
              <table cellspacing="0" cellpadding="0" align="center">
                  <tr>
                      <th width="40%">日程时间</th>
                      <th width="60%">日程内容</th>
                  </tr>
               </table>
              <table id="pageMain" cellspacing="0" cellpadding="0" align="center">
          <%
              for(int i=datelist.size()-1;i>=0;i--){
                  LookDateBean dd=(LookDateBean)datelist.get(i);
          %>
          <tr class="hoverTr">
              <td><%=dd.getDate()%></td>
              <td><%=dd.getThing()%></td>
          </tr>
          <%
                  }
              }
          %>
      </table>
    </body>
    <%@include file="../page.jsp" %>
</html>
